#include "stdafx.h"
#include "Exec.h"

void Exec::exec(PTSTR modName,PTSTR cmdLine){
	STARTUPINFO s;
    PROCESS_INFORMATION p;
	ZeroMemory(&s,sizeof(s));
    ZeroMemory(&p,sizeof(p));
    s.cb=sizeof(s);
	if(CreateProcess(modName,cmdLine,0,0,0,0,0,0,&s,&p)){
		//WaitForSingleObject(p.hProcess,INFINITE);
		CloseHandle(p.hProcess);
		CloseHandle(p.hThread);
	}
}